<link rel="stylesheet" href="../../css/mineexpend.css">
<div class="body">
    <div class="month-total">
        <div class="first">本月</div>
        <div class="last">总额: <span>￥</span><span class="total-price" style="font-weight: 400;font-size: 1.8rem"><%=allmoney%></span></div>
    </div>
    <%for(var i=0;i<data_s.length;i++){if(data_s[i].source=='ali'){%>
    <ul>
        <li class="pay-way">
            <img src="images/ali.png" width="100%">
        </li>
        <li class="consume-list">
            <span class="date"><%=data_s[i].ordertime%>订单</span>
            <%for(var j=0;j<data.length;j++){if(data[j].ordertime == data_s[i].ordertime){%>
            <p><%=data[j].name%></p>
            <%}}%>
        </li>
        <li class="amount">
            <p class="all-font">消费总额</p>
            <p class="total"><%=data_s[i].sumprice/100%></p>
            <p class="haspay">已结算<span id="haspay"><%=Math.abs((data_s[i].deposit)/100)%></span>元</p>
        </li>
    </ul>
    <%}else if(data_s[i].source=='wx'){%>
    <ul>
        <li class="pay-way">
            <img src="images/weixin.png" width="100%">
        </li>
        <li class="consume-list">
            <span class="date"><%=data_s[i].ordertime%>订单</span>
            <%for(var j=0;j<data.length;j++){if(data[j].ordertime == data_s[i].ordertime){%>
            <p><%=data[j].name%></p>
                <%}}%>
        </li>
        <li class="amount">
            <p class="all-font">消费总额</p>
            <p class="total"><%=data_s[i].sumprice/100%></p>
            <p class="haspay">已结算<span id="haspay"><%=Math.abs((data_s[i].deposit)/100)%></span>元</p>
        </li>
    </ul>
    <%}else{%>
    <ul>
        <li class="pay-way">
            <!--<img src="images/weixin.png" width="100%">-->
        </li>
        <li class="consume-list">
            <span class="date"><%=data_s[i].ordertime%>订单</span>
            <%for(var j=0;j<data.length;j++){if(data[j].ordertime == data_s[i].ordertime&&data[j].source == ''){%>
            <p><%=data[j].name%></p>
            <%}}%>
        </li>
        <li class="amount">
            <p class="all-font">消费总额</p>
            <p class="total"><%=data_s[i].sumprice%></p>
            <p class="haspay">已结算<span id="haspay"><%=data_s[i].deposit%></span>元</p>
        </li>
    </ul>
    <%}}%>
    <div class="bottom" style="width: 100%;height: 60px;"></div>
</div>